﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WindowsGame1
{
    public enum Level { Easy = 0, Normal = 1, Hard = 2, Ultimate = 3 };

    public class Difficulty
    {
        static float[] experience = { 1.25f, 1.0f, 0.85f, 0.7f };
        static float[] abilities = { 0.75f, 1.0f, 1.25f, 1.5f };
        static int pointsPerLevel = 4;
        public static float[] Experience
        {
            get { return experience; }
        }
        public static float[] Abilities
        {
            get { return abilities; }
        }
        public static int Length
        {
            get { return Enum.GetNames(typeof(Level)).Length; }
        }
        public static int PointsPerLevel
        {
            get { return pointsPerLevel; }
        }
        public static Level DifficultyLevel(int index)
        {
            if (index >= 0 && index <= (int)Level.Ultimate)
                return (Level)index;
            throw new System.IndexOutOfRangeException();
        }
    }
}
